{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=64
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,n,k:longint;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
for i:=1 to n do begin
	read(k);
	if not odd(k) then write(k,' ');
end;
end.